﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Cs2102BookingSystem.Models.SearchModels>" %>
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {

    }
</script>
<style type="text/css">
        .style1
        {
            margin-left: 430px;
            width: 678px;
        }
        .style2
        {
            width: 208px;
            margin-left: 395px;
        }
        .style5
        {
            margin-left: 974px;
        }
        .style6
        {
            margin-left: 415px;
            width: 262px;
        }
    </style>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
         <legend>Search For Your Hotel Now</legend>
            <div class="editor-label">
               
                
            </div>
            <div class="style6" align="left" style="text-align: left">
            Enter Hotel Name or Country
                  
            </div>
            <br />

            <div class="style1" align="left" style="text-align: left">
                <%: Html.TextBoxFor(model => model.Search)%>
                <%: Html.ValidationMessageFor(model => model.Search) %>
            </div>
            
<br />
            <p>
                <input type="submit" value="Search" name="SearchButton" 
                    style="text-align: center" class="style2"/>
            </p>
            <br />
            <div class="style5"><%: Html.ActionLink("Advanced Search", "AdvancedSearch", "Search") %> </div> 

        </fieldset>

      

    <% } %>

    


